/**
 * 零基础学C语言
 * 
 * @version 1st
 * @author 明日科技
 * @see http://www.mingrisoft.com
 */

#include <stdio.h>

# define HEG 0.54

float height(float father_height, float mother_height) {
    float son_height = (father_height + mother_height) * HEG;
    return son_height;
}

int main() {
    float father_height;            /* 定义浮点型变量，表示父亲的身高 */
    float mother_height;            /* 定义浮点型变量，表示母亲的身高*/
    float son_height;               /* 定义浮点型变量，表示儿子的身高 */

    printf("请输入父亲的身高： \n");
    scanf("%f", &father_height);

    printf("请输入母亲的身高： \n");
    scanf("%f", &mother_height);

    son_height = height(father_height, mother_height);
    printf("预测儿子的身高： ");
    printf("%.2f \n", son_height);

    return 0;
}



/*
output:

*/